package com.chezhujie.www.domain;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;



/*import com.xy.morefun.domain.BaseBean;*/

public class Tsuser implements Serializable {

	private static final long serialVersionUID = -7492639752670189553L;

	/** 用户id */
	private String userid;
	/** 用户名 */
	private java.lang.String username;
	/** 姓名 */
	private java.lang.String truename;
	/** 密码 */
	private java.lang.String passwd;
	/** 性别 */
	private java.lang.String sex;
	/** 手机 */
	private java.lang.String phone;
	/** 邮箱 */
	private java.lang.String email;
	/** 状态 */
	private java.lang.String status;
	/** 注册ip */
	private java.lang.String regip;
	/** 登陆次数 */
	private java.lang.String logtimes;
	/** 错误次数 */
	private java.lang.String errtimes;
	/** 上次登陆ip */
	private java.lang.String lastloginip;
	/** 上次登陆时间 */
	private java.util.Date lastlogintime;
	/** 创建时间 */
	private java.util.Date regtime;
	/** 更新时间 */
	private java.util.Date modtime;
	private Set troles = new HashSet(0);
	
	private Set<Trolepermission>  trolepermissions = new HashSet<Trolepermission>();
	

	public String getUserid() {
		return userid;
	}

	public java.lang.String getUsername() {
		return username;
	}

	public java.lang.String getTruename() {
		return truename;
	}

	public java.lang.String getPasswd() {
		return passwd;
	}

	public java.lang.String getSex() {
		return sex;
	}

	public java.lang.String getPhone() {
		return phone;
	}

	public java.lang.String getEmail() {
		return email;
	}

	public java.lang.String getStatus() {
		return status;
	}

	public java.lang.String getRegip() {
		return regip;
	}

	public java.lang.String getLogtimes() {
		return logtimes;
	}

	public java.lang.String getErrtimes() {
		return errtimes;
	}

	public java.lang.String getLastloginip() {
		return lastloginip;
	}

	public java.util.Date getLastlogintime() {
		return lastlogintime;
	}

	public java.util.Date getRegtime() {
		return regtime;
	}

	public java.util.Date getModtime() {
		return modtime;
	}

//	public String getLastlogintimeStr() {
//		return DateFormator.formatDate(lastlogintime);
//	}
//
//	public String getRegtimeStr() {
//		return DateFormator.formatDate(regtime);
//	}
//
//	public String getModtimeStr() {
//		return DateFormator.formatDate(modtime);
//	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public void setUsername(java.lang.String username) {
		this.username = username;
	}

	public void setTruename(java.lang.String truename) {
		this.truename = truename;
	}

	public void setPasswd(java.lang.String passwd) {
		this.passwd = passwd;
	}

	public void setSex(java.lang.String sex) {
		this.sex = sex;
	}

	public void setPhone(java.lang.String phone) {
		this.phone = phone;
	}

	public void setEmail(java.lang.String email) {
		this.email = email;
	}

	public void setStatus(java.lang.String status) {
		this.status = status;
	}

	public void setRegip(java.lang.String regip) {
		this.regip = regip;
	}

	public void setLogtimes(java.lang.String logtimes) {
		this.logtimes = logtimes;
	}

	public void setErrtimes(java.lang.String errtimes) {
		this.errtimes = errtimes;
	}

	public void setLastloginip(java.lang.String lastloginip) {
		this.lastloginip = lastloginip;
	}

	public void setLastlogintime(java.util.Date lastlogintime) {
		this.lastlogintime = lastlogintime;
	}

	public void setRegtime(java.util.Date regtime) {
		this.regtime = regtime;
	}

	public void setModtime(java.util.Date modtime) {
		this.modtime = modtime;
	}

	public Set getTroles() {
		return this.troles;
	}

	public void setTroles(Set troles) {
		this.troles = troles;
	}

	public Set<Trolepermission> getTrolepermissions() {
		return trolepermissions;
	}

	public void setTrolepermissions(Set<Trolepermission> trolepermissions) {
		this.trolepermissions = trolepermissions;
	}


	
	
	
}